import {
	getData
} from '../../net/HttpUtil.js'
import api from "../../net/api.js"
class AdContral {
	constructor(arg) {

	}
	 static async getAds(callBack) {
		try {
			const res = await getData({
				url: api.getAds,
			})
			if (res.statusCode == 200) {
				if (res.data.code == 1) {
					callBack.showAds(res);
				}
			}
		} catch (e) {
			console.log("eee: ", e);
		}
	
	}
}

export default AdContral;
